﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Interface ILockManager
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Interface ILockManager
   ">
    <meta name="generator" content="docfx 2.16.2.2">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content">
              
              
              <h1 id="FubarDev_WebDavServer_Locking_ILockManager" data-uid="FubarDev.WebDavServer.Locking.ILockManager">Interface ILockManager
              </h1>
              <div class="markdown level0 summary"><p>The interface for a lock manager</p>
</div>
              <div class="markdown level0 conceptual"></div>
              <h6><strong>Namespace</strong>:FubarDev.WebDavServer.Locking</h6>
              <h6><strong>Assembly</strong>:FubarDev.WebDavServer.dll</h6>
              <h5 id="FubarDev_WebDavServer_Locking_ILockManager_syntax">Syntax</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">public interface ILockManager</code></pre>
              </div>
              <h3 id="properties">Properties
              </h3>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_Cost.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.Cost%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L35">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_Cost_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.Cost*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_Cost" data-uid="FubarDev.WebDavServer.Locking.ILockManager.Cost">Cost</h4>
              <div class="markdown level1 summary"><p>Gets the cost of a LOCK/UNLOCK or lock discovery operation</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">int Cost { get; }</code></pre>
              </div>
              <h5 class="propertyValue">Property Value</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.int32(v=vs.110).aspx">Int32</a></td>
                    <td></td>
                  </tr>
                </tbody>
              </table>
              <h3 id="methods">Methods
              </h3>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_GetAffectedLocksAsync_System_String_System_Boolean_System_Boolean_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.GetAffectedLocksAsync(System.String%2CSystem.Boolean%2CSystem.Boolean%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L106">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_GetAffectedLocksAsync_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.GetAffectedLocksAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_GetAffectedLocksAsync_System_String_System_Boolean_System_Boolean_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.GetAffectedLocksAsync(System.String,System.Boolean,System.Boolean,System.Threading.CancellationToken)">GetAffectedLocksAsync(String, Boolean, Boolean, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Gets all active locks</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;IEnumerable&lt;IActiveLock&gt;&gt; GetAffectedLocksAsync([NotNull] string path, bool findChildren, bool findParents, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.string(v=vs.110).aspx">String</a></td>
                    <td><span class="parametername">path</span></td>
                    <td><p>The file system path to get the locks for</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.boolean(v=vs.110).aspx">Boolean</a></td>
                    <td><span class="parametername">findChildren</span></td>
                    <td><p>Return all locks that are a child of the given <span class="paramref">path</span>?</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.boolean(v=vs.110).aspx">Boolean</a></td>
                    <td><span class="parametername">findParents</span></td>
                    <td><p>Return all locks that are a parent of the given <span class="paramref">path</span>?</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="https://msdn.microsoft.com/en-us/library/9eekhta0(v=vs.110).aspx">IEnumerable</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.IActiveLock.html">IActiveLock</a>&gt;&gt;</td>
                    <td><p>Returns all active locks</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 id="FubarDev_WebDavServer_Locking_ILockManager_GetAffectedLocksAsync_System_String_System_Boolean_System_Boolean_System_Threading_CancellationToken__remarks">Remarks</h5>
              <div class="markdown level1 remarks"><p>Be aware that the locks could&#39;ve been released in the mean time by a concurrent
access or by the <a class="xref" href="FubarDev.WebDavServer.Locking.LockCleanupTask.html">LockCleanupTask</a>.</p>
</div>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_GetLocksAsync_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.GetLocksAsync(System.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L90">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_GetLocksAsync_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.GetLocksAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_GetLocksAsync_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.GetLocksAsync(System.Threading.CancellationToken)">GetLocksAsync(CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Gets all active locks</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;IEnumerable&lt;IActiveLock&gt;&gt; GetLocksAsync(CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="https://msdn.microsoft.com/en-us/library/9eekhta0(v=vs.110).aspx">IEnumerable</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.IActiveLock.html">IActiveLock</a>&gt;&gt;</td>
                    <td><p>Returns all active locks</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 id="FubarDev_WebDavServer_Locking_ILockManager_GetLocksAsync_System_Threading_CancellationToken__remarks">Remarks</h5>
              <div class="markdown level1 remarks"><p>Be aware that the locks could&#39;ve been released in the mean time by a concurrent
access or by the <a class="xref" href="FubarDev.WebDavServer.Locking.LockCleanupTask.html">LockCleanupTask</a>.</p>
</div>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_LockAsync_FubarDev_WebDavServer_Locking_ILock_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.LockAsync(FubarDev.WebDavServer.Locking.ILock%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L43">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_LockAsync_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.LockAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_LockAsync_FubarDev_WebDavServer_Locking_ILock_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.LockAsync(FubarDev.WebDavServer.Locking.ILock,System.Threading.CancellationToken)">LockAsync(ILock, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Tries to issue a lock</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;LockResult&gt; LockAsync(ILock l, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Locking.ILock.html">ILock</a></td>
                    <td><span class="parametername">l</span></td>
                    <td><p>The lock to issue</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.LockResult.html">LockResult</a>&gt;</td>
                    <td><p>Either the list of locks preventing issuing a lock or the active lock created</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_LockImplicitAsync_FubarDev_WebDavServer_FileSystem_IFileSystem_System_Collections_Generic_IReadOnlyCollection_FubarDev_WebDavServer_Model_Headers_IfHeaderList__FubarDev_WebDavServer_Locking_ILock_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.LockImplicitAsync(FubarDev.WebDavServer.FileSystem.IFileSystem%2CSystem.Collections.Generic.IReadOnlyCollection%7BFubarDev.WebDavServer.Model.Headers.IfHeaderList%7D%2CFubarDev.WebDavServer.Locking.ILock%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L55">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_LockImplicitAsync_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.LockImplicitAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_LockImplicitAsync_FubarDev_WebDavServer_FileSystem_IFileSystem_System_Collections_Generic_IReadOnlyCollection_FubarDev_WebDavServer_Model_Headers_IfHeaderList__FubarDev_WebDavServer_Locking_ILock_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.LockImplicitAsync(FubarDev.WebDavServer.FileSystem.IFileSystem,System.Collections.Generic.IReadOnlyCollection{FubarDev.WebDavServer.Model.Headers.IfHeaderList},FubarDev.WebDavServer.Locking.ILock,System.Threading.CancellationToken)">LockImplicitAsync(IFileSystem, IReadOnlyCollection&lt;IfHeaderList&gt;, ILock, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Tries to find a lock identified by the <span class="paramref">ifHeaderLists</span> or creates a new one if none was found.</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;IImplicitLock&gt; LockImplicitAsync([NotNull] IFileSystem rootFileSystem, [CanBeNull, ItemNotNull] IReadOnlyCollection&lt;IfHeaderList&gt; ifHeaderLists, ILock lockRequirements, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.FileSystem.IFileSystem.html">IFileSystem</a></td>
                    <td><span class="parametername">rootFileSystem</span></td>
                    <td><p>The root file system to identify the lock for</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/hh881542(v=vs.110).aspx">IReadOnlyCollection</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Model.Headers.IfHeaderList.html">IfHeaderList</a>&gt;</td>
                    <td><span class="parametername">ifHeaderLists</span></td>
                    <td><p>The <code>If</code> header lists that tries to identify the lock to use</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Locking.ILock.html">ILock</a></td>
                    <td><span class="parametername">lockRequirements</span></td>
                    <td><p>The requirements the found lock must meet</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.IImplicitLock.html">IImplicitLock</a>&gt;</td>
                    <td><p>Either the list of locks preventing issuing a lock or the active lock created or reused</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_RefreshLockAsync_FubarDev_WebDavServer_FileSystem_IFileSystem_FubarDev_WebDavServer_Model_Headers_IfHeader_System_TimeSpan_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.RefreshLockAsync(FubarDev.WebDavServer.FileSystem.IFileSystem%2CFubarDev.WebDavServer.Model.Headers.IfHeader%2CSystem.TimeSpan%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L67">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_RefreshLockAsync_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.RefreshLockAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_RefreshLockAsync_FubarDev_WebDavServer_FileSystem_IFileSystem_FubarDev_WebDavServer_Model_Headers_IfHeader_System_TimeSpan_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.RefreshLockAsync(FubarDev.WebDavServer.FileSystem.IFileSystem,FubarDev.WebDavServer.Model.Headers.IfHeader,System.TimeSpan,System.Threading.CancellationToken)">RefreshLockAsync(IFileSystem, IfHeader, TimeSpan, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Tries to refresh a lock</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
[ItemNotNull]
Task&lt;LockRefreshResult&gt; RefreshLockAsync([NotNull] IFileSystem rootFileSystem, [NotNull] IfHeader ifHeader, TimeSpan timeout, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.FileSystem.IFileSystem.html">IFileSystem</a></td>
                    <td><span class="parametername">rootFileSystem</span></td>
                    <td><p>The root file system</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="FubarDev.WebDavServer.Model.Headers.IfHeader.html">IfHeader</a></td>
                    <td><span class="parametername">ifHeader</span></td>
                    <td><p>The header that tries to identify the lock to refresh</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.timespan(v=vs.110).aspx">TimeSpan</a></td>
                    <td><span class="parametername">timeout</span></td>
                    <td><p>The header containing the new timeouts</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.LockRefreshResult.html">LockRefreshResult</a>&gt;</td>
                    <td><p>Either the list of locks preventing refreshing a lock or the refreshed lock</p>
</td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_ReleaseAsync_System_String_System_Uri_System_Threading_CancellationToken_.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.ReleaseAsync(System.String%2CSystem.Uri%2CSystem.Threading.CancellationToken)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L78">View Source</a>
              </span>
              <a id="FubarDev_WebDavServer_Locking_ILockManager_ReleaseAsync_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.ReleaseAsync*"></a>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_ReleaseAsync_System_String_System_Uri_System_Threading_CancellationToken_" data-uid="FubarDev.WebDavServer.Locking.ILockManager.ReleaseAsync(System.String,System.Uri,System.Threading.CancellationToken)">ReleaseAsync(String, Uri, CancellationToken)</h4>
              <div class="markdown level1 summary"><p>Releases a lock with the given state token</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">[NotNull]
Task&lt;LockReleaseStatus&gt; ReleaseAsync([NotNull] string path, [NotNull] Uri stateToken, CancellationToken cancellationToken)</code></pre>
              </div>
              <h5 class="parameters">Parameters</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Name</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.string(v=vs.110).aspx">String</a></td>
                    <td><span class="parametername">path</span></td>
                    <td><p>The path to release the lock for</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.uri(v=vs.110).aspx">Uri</a></td>
                    <td><span class="parametername">stateToken</span></td>
                    <td><p>The state token of the lock to release</p>
</td>
                  </tr>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/system.threading.cancellationtoken(v=vs.110).aspx">CancellationToken</a></td>
                    <td><span class="parametername">cancellationToken</span></td>
                    <td><p>The cancellation token</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h5 class="returns">Returns</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/dd321424(v=vs.110).aspx">Task</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.LockReleaseStatus.html">LockReleaseStatus</a>&gt;</td>
                    <td><p><span class="xref">true</span> when there was a lock to remove</p>
</td>
                  </tr>
                </tbody>
              </table>
              <h3 id="events">Events
              </h3>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_LockAdded.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.LockAdded%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L25">View Source</a>
              </span>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_LockAdded" data-uid="FubarDev.WebDavServer.Locking.ILockManager.LockAdded">LockAdded</h4>
              <div class="markdown level1 summary"><p>Gets called when a lock was added</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">event EventHandler&lt;LockEventArgs&gt; LockAdded</code></pre>
              </div>
              <h5 class="eventType">Event Type</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/db0etb8x(v=vs.110).aspx">EventHandler</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.LockEventArgs.html">LockEventArgs</a>&gt;</td>
                    <td></td>
                  </tr>
                </tbody>
              </table>
              <span class="small pull-right mobile-hide">
                <span class="divider">|</span>
                <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager_LockReleased.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager.LockReleased%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
              </span>
              <span class="small pull-right mobile-hide">
                <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L30">View Source</a>
              </span>
              <h4 id="FubarDev_WebDavServer_Locking_ILockManager_LockReleased" data-uid="FubarDev.WebDavServer.Locking.ILockManager.LockReleased">LockReleased</h4>
              <div class="markdown level1 summary"><p>Gets called when a lock was released</p>
</div>
              <div class="markdown level1 conceptual"></div>
              <h5 class="decalaration">Declaration</h5>
              <div class="codewrapper">
                <pre><code class="lang-csharp hljs">event EventHandler&lt;LockEventArgs&gt; LockReleased</code></pre>
              </div>
              <h5 class="eventType">Event Type</h5>
              <table class="table table-bordered table-striped table-condensed">
                <thead>
                  <tr>
                    <th>Type</th>
                    <th>Description</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td><a class="xref" href="https://msdn.microsoft.com/en-us/library/db0etb8x(v=vs.110).aspx">EventHandler</a>&lt;<a class="xref" href="FubarDev.WebDavServer.Locking.LockEventArgs.html">LockEventArgs</a>&gt;</td>
                    <td></td>
                  </tr>
                </tbody>
              </table>
                        </article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/FubarDevelopment/WebDavServer/new/master/apiSpec/new?filename=FubarDev_WebDavServer_Locking_ILockManager.md&amp;value=---%0Auid%3A%20FubarDev.WebDavServer.Locking.ILockManager%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/FubarDevelopment/WebDavServer/blob/master/src/FubarDev.WebDavServer/Locking/ILockManager.cs/#L20" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            <span>Copyright © 2016-2017 Fubar Development Junker<br>Generated by <strong>DocFX</strong></span>
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/jquery.min.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
